import {
  SET_USER_CODE,
  SET_USER_INFO,
  SET_WX_USER_INFO
} from './mutation-types.js'

export default {
  //设置用户code
  [SET_USER_CODE](state,code){
    state.userCode = code;
  },
  //设置微信返回的用户信息
  [SET_WX_USER_INFO](state,WXuserInfo){
    state.WXuserInfo = WXuserInfo;
  },
  //设置后端用户信息
  [SET_USER_INFO](state,userInfo){
    state.userInfo = userInfo;
  }
};
